/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.elan.action.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Elan
 * @generated
 */
public class user1Soap implements Serializable {
	public static user1Soap toSoapModel(user1 model) {
		user1Soap soapModel = new user1Soap();

		soapModel.setActionId(model.getActionId());
		soapModel.setUserName(model.getUserName());
		soapModel.setPassword(model.getPassword());

		return soapModel;
	}

	public static user1Soap[] toSoapModels(user1[] models) {
		user1Soap[] soapModels = new user1Soap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static user1Soap[][] toSoapModels(user1[][] models) {
		user1Soap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new user1Soap[models.length][models[0].length];
		}
		else {
			soapModels = new user1Soap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static user1Soap[] toSoapModels(List<user1> models) {
		List<user1Soap> soapModels = new ArrayList<user1Soap>(models.size());

		for (user1 model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new user1Soap[soapModels.size()]);
	}

	public user1Soap() {
	}

	public long getPrimaryKey() {
		return _actionId;
	}

	public void setPrimaryKey(long pk) {
		setActionId(pk);
	}

	public long getActionId() {
		return _actionId;
	}

	public void setActionId(long actionId) {
		_actionId = actionId;
	}

	public String getUserName() {
		return _userName;
	}

	public void setUserName(String userName) {
		_userName = userName;
	}

	public String getPassword() {
		return _password;
	}

	public void setPassword(String password) {
		_password = password;
	}

	private long _actionId;
	private String _userName;
	private String _password;
}